package com.css.zfzx.sjcj.modules.hddcImportantSurfaceFeature.repository;

import com.css.zfzx.sjcj.modules.hddcImportantSurfaceFeature.repository.entity.HddcImportantsurfacefeatureEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author lihelei
 * @date 2020-11-30
 */
public interface HddcImportantsurfacefeatureRepository extends JpaRepository<HddcImportantsurfacefeatureEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Importantsurfacefeature where project_name in :projectIds")
    List<HddcImportantsurfacefeatureEntity> queryHddcImportantsurfacefeaturesByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Importantsurfacefeature where task_name in :projectIds")
    List<HddcImportantsurfacefeatureEntity> queryHddcImportantsurfacefeaturesByTaskId(List<String> projectIds);
}

